import { get, post } from '../http'

const daity = {
  // 查询论坛分享列表
  getDaityList(query) {
    return get('/dailySharing/queryList', query)
},
// 用户发布论坛分享
addDaity(params) {
    return post('/dailySharing/add', params)
},
// 删除发布的论坛分享
deleteDaity(params) {
    return post('/dailySharing/del', params)
},
// 对论坛分享进行评论
addComment(params) {
    return post('/dailySharingComment/add', params)
},
// 删除评论
deleteComment(params) {
    return post('/dailySharingComment/del', params)
},
// 查询评论列表(针对论坛分享的评论)
getCommentList(query) {
    return get('/dailySharingComment/queryList', query)
}
}

export default daity
